package site.teamo.biu.net.client.core.http_https_proxy;

import io.netty.channel.Channel;
import io.netty.handler.codec.http.HttpRequest;
import site.teamo.biu.net.common.http_https_proxy.ConnectionState;
import site.teamo.biu.net.common.util.HostPort;


/**
 * @author haocongshun
 * @date 2023/06/13 14:50:37
 */
public interface ConnectionHandler {
    void http(HostPort hostPort, Channel channelFromBrowser, HttpRequest request);

    void https(HostPort hostPort, Channel channelFromBrowser);

    void close();

    ConnectionState directConnectionState();

    ConnectionState proxyConnectionState();
}
